﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopSanPhamMoi.ascx.cs"
    Inherits="TMDT_Nhom1A.UserControl.TopSanPhamMoi" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="tk" %>
<div style="width: 916px; margin-left: 0px; padding: 0px">
    <div class="moduletable">
        <h3>
            Sản phẩm mới</h3>
        <asp:DataList ID="dltopproduct" runat="server" RepeatColumns="5" RepeatDirection="Horizontal"
            OnItemDataBound="dltopproduct_ItemDataBound">
            <ItemTemplate>
                <div style="text-align: center; width: 225px; cursor: default !importance">
                    <div class="s5_vm_name">
                        <a href='<%# "../San_Pham/ChiTietSanPham.aspx?ElectricDeviceID=" + Eval("ElectricDevice_ID") %>'>
                            <%# Eval("ElectricDevice_ID") %></a>
                        <asp:LinkButton Visible="false" ID="lbLinkToDetail" CommandName="lbLinkToDetail"
                            CommandArgument='<%# Eval("ElectricDevice_ID") %>' runat="server"><%# Eval("ElectricDevice_ID") %></asp:LinkButton>
                    </div>
                    <div class="s5_vm_image">
                        <a href='<%# "../San_Pham/ChiTietSanPham.aspx?ElectricDeviceID=" + Eval("ElectricDevice_ID") %>'>
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImagePath","../images/{0}") %>' /></a>
                    </div>
                    <div style="clear: both">
                    </div>
                    <div class="s5_vm_price">
                        <p>
                            Số lượng :
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label></p>
                        <div id="nondel" runat="server">
                            <p>
                                Giá bán lẽ
                                <asp:Label ID="lbRetailPrice" runat="server" Text='<%# Eval("RetailPrice") %>' Font-Bold="true"
                                    ForeColor="Red"></asp:Label>
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                            <p>
                                Giá sĩ:
                                <asp:Label ID="lbDealerPrice" runat="server" Text='<%# Eval("DealerPrice") %>' Font-Bold="true"
                                    ForeColor="Red"></asp:Label>
                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                        </div>
                        <div id="del" runat="server" visible="false">
                            <p>
                                Giá bán lẽ: <del>
                                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("RetailPrice") %>' Font-Bold="true"
                                        ForeColor="Red"></asp:Label></del>
                                <asp:Label ID="Label9" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                            <p>
                                Giá sĩ:<del>
                                    <asp:Label ID="Label10" runat="server" Text='<%# Eval("DealerPrice") %>' Font-Bold="true"
                                        ForeColor="Red"></asp:Label></del>
                                <asp:Label ID="Label11" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                        </div>
                        <p runat="server" id="pNonDiscountPrice" visible="false">
                            Giá coupon :
                            <asp:Label ID="lbNonDiscountPrice" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                        </p>
                        <p runat="server" id="pPriceCoupon" visible="false">
                            Giá coupon giảm :
                            <asp:Label ID="lbDiscountPrice" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                            <asp:Label ID="Label7" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                        </p>
                    </div>
                </div>
            </ItemTemplate>
        </asp:DataList>
    </div>
</div>
